service.service('slotService',['requestService',function(requestService){

    var service={};

    var getApiPath=function(path){
        return apiUtil.getPath('/slot',path);
    };

    /**
     * 槽数量
     * @param successCallback
     * @param errorCallback
     */
    service.getCount=function(successCallback,errorCallback){
        requestService.getApi(getApiPath('/count'),{},successCallback,errorCallback);
    };

    /**
     * @param successCallback
     * @param errorCallback
     */
    service.getSlots=function(successCallback,errorCallback){
        requestService.getApi(getApiPath(),{},successCallback,errorCallback);
    };

    return service;
}]);